Skip to content

Conversation

@SMS-Derfflinger
Copy link
Collaborator

Replace the previous ext4 crate that did not work well with another crate, now file and directory's read, write, create, delete operations are all worked well, this is done on the version without pagecache.

@joey-shao
Copy link
Collaborator

Great!I will test it with pagecache soon.

joey-shao
joey-shao previously approved these changes Jul 29, 2025
Fix page cache's bug, add size check in read function.

Add page cache's base operations for ext4, but the cachepage will not be
dropped until kernel stop, so we need to call fsync function manually,
consider use some strategy such as LRU.
@SMS-Derfflinger
Copy link
Collaborator Author

Add page cache's base operations for ext4, but the cachepage will not be dropped until kernel stop, so we need to call fsync function manually, consider use some strategy such as LRU.

temporary write back by timer, when write function is called, check if the time since the last write back is greater than 10 seconds. If it is, then write back.
@SMS-Derfflinger
Copy link
Collaborator Author

Temporary write back by timer, when write function is called, check if the time since the last write back is greater than 10 seconds. If it is, then write back.

greatbridf
greatbridf previously approved these changes Aug 16, 2025
@greatbridf greatbridf dismissed their stale review August 16, 2025 17:40

Some bugs are found and needs fixing

@greatbridf
Copy link
Owner

On the previous version, we can see the lib and ltp as folders.

image

While in the replaced implementation, the two are seen as regular files with 755 permission...

image

This should be fixed and won't be hard...

@SMS-Derfflinger
Copy link
Collaborator Author

SMS-Derfflinger commented Aug 17, 2025

On the previous version, we can see the lib and ltp as folders.

image While in the replaced implementation, the two are seen as regular files with 755 permission... image This should be fixed and won't be hard...

This need a cargo update, because the another_ext4 updated, already done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants